@import '~view-design/src/styles/index.less';

@menu-dark-title: #001529;
@menu-dark-active-bg: #000c17;
@layout-sider-background: #001529;

.clearfix{*zoom:1;}
.clearfix:before,.clearfix:after{display:table;content:"";line-height:0;}
.clearfix:after{clear:both;}

.one-line{
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  word-break: break-all;
}

.admin_title{
  color:#333333;
  font-size: 20px;
  font-weight: bolder;
  position: relative;
  padding-left: 16px;
  margin: 16px 0;
  &:before{
    position: absolute;
    width: 4px;
    height: 21px;
    background: #0F5CFB;
    display: block;
    content: '';
    left: 0;
    top: 5px;
  }
}

.goods_modal{
  .ivu-modal-header{
    background: #FAFBFC;
    .ivu-modal-header-inner{
      font-size: 15px;
      color:#353535;
      font-weight: normal;
    }
  }
  .ivu-form-item-label{
    font-size: 14px!important;
    text-align: left!important;
  }
  .ivu-modal-footer{
    display: none;
  }
  .ivu-input-wrapper{
    .ivu-input{
      border-radius: 0;
    }
  }
  .ivu-modal-body{
    padding: 18px 30px;
  }
  .ivu-modal-content{
    border-radius: 0;
  }
  .ivu-radio-wrapper{
    margin-right: 18px;
  }
}

.live_wrapper{
  .ivu-select-selection{
    border:1px solid #DCDCDC;
    height:34px;
    line-height:32px;
  }
  .ivu-select-single .ivu-select-selection .ivu-select-placeholder{
    height:34px;
    line-height:32px;
    font-size:14px;
  }
  .ivu-select-single .ivu-select-selection .ivu-select-selected-value{
    height:34px;
    line-height:32px;
    font-size:14px;
  }
  .ivu-input-group .ivu-input{
    border:1px solid #DCDCDC;
    height:34px;
    line-height:32px;
    font-size:14px;
  }
  .ivu-input-group{
    top:0;
  }
}

.table_pattern{
  .ivu-table-wrapper{
    border:0;
    .ivu-table{
      &:before{
        background-color:#F5F7FA;
      }
      &:after{
        width: 0;
      }
      th{
        background-color:#F5F7FA;
        border-bottom: 1px solid #F5F7FA;
        span{
          font-size:15px;
          font-weight:normal;
        }
      }
    }
    .ivu-table-body{
      .ivu-table-cell{
        strong{
          font-size:14px;
          font-weight:normal;
        }
      }
      td{
        font-size:14px;
        border-bottom: 1px solid #F5F7FA;
      }
      button{
        &:focus{
          box-shadow: none;
        }
        span{
          transition: 0.2s;
          &:hover{
            opacity: 0.8;
          }
        }
      }
    }
  }
}
.table_pattern2{
  .ivu-table{
    th{
      height: 50px;
    }
  }
}

.live_cover{
  .no_pic{
    background:#F7F8F9;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 150px;
    height: 112px;
  }
}

.ivu-page{
  .ivu-page-prev, .ivu-page-next, .ivu-page-item-jump-prev, .ivu-page-item-jump-next{
    width: 26px;
    height: 26px;
    line-height: 24px;
    min-width: 26px;
  }
  .ivu-page-item{
    width: 26px;
    height: 26px;
    min-width: 26px;
    line-height:24px;
  }
  .ivu-page-options-elevator{
    line-height: 31px;
    input{
      height: 26px;
    }
  }
}

.demo-upload-list {
  display: inline-block;
  min-width: 60px;
  min-height: 60px;
  //max-width: 200px;
  //max-height: 200px;
  text-align: center;
  line-height: 0px;
  //border: 1px solid transparent;
  //border-radius: 4px;
  overflow: hidden;
  background: #fff;
  position: relative;
  -webkit-box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
          box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  margin-right: 4px;
}
.demo-upload-list img {
  width: 100%;
  height: 100%;
}
.demo-upload-list-cover {
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
}
.demo-upload-list:hover .demo-upload-list-cover {
  display: block;
}
.demo-upload-list-cover i {
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  margin-top: 20%;
  margin-right: 10px;
}
p.prompt {
  color: #dddee1;
}

.needCover{
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

.public_modal_header{
  .ivu-modal-header{
    background:#FAFBFC;
    .ivu-modal-header-inner{
      font-size: 16px;
      font-weight: normal;
    }
  }
}

.ivu-switch-checked:after{
  margin-left:12px!important;
}

.edit_modal{
  .ivu-modal-content{
    border-radius: 0;
  }
  .ivu-form-item-label{
    font-size: 14px!important;
    text-align: left!important;
  }
  .ivu-modal-footer{
    display: none;
  }
  .ivu-input-wrapper{
    .ivu-input{
      border-radius: 0;
    }
  }
  .ivu-modal-body{
    padding: 0;
  }
  .btns{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    background:#FAFBFC;
    padding: 15px;
    .ivu-btn{
      width:90px;
      height:35px;
      font-size: 14px;
      border-radius: 0;
    }
  }
}

.w-e-text-container{
  min-height: 500px!important;
}

.shop_modal{
  .no_shop_list{
    .no1{
      display: flex;
      justify-content: center;
      align-items: center;
      flex-direction: column;
      padding-top: 90px;
      img{
        width: 72px;
      }
      span{
        color:#B2B2B2;
        font-size: 14px;
        display: block;
        margin-top: 5px;
      }
    }
    .no2{
      text-align: center;
      margin-top: 23px;
      margin-bottom: 90px;
      &>.ivu-btn{
        width:90px;
        height:35px;
        background:rgba(43,118,238,1);
        border-radius:2px;
        font-size: 14px;
      }
    }
  }
  .ivu-modal{
    width: 800px!important;
    .ivu-modal-header{
      background: #FAFBFC;
      .ivu-modal-header-inner{
        font-size: 16px;
        color:#353535;
        font-weight: normal;
      }
    }
    .ivu-modal-body{
      padding: 0;
    }
    .ivu-modal-footer{
      display: none;
    }
    .ivu-modal-content{
      border-radius: 0;
    }
    .shop_btm{
      background:#FAFBFC;
      text-align: center;
      padding-top: 15px;
      padding-bottom: 15px;
      .ivu-btn{
        width: 90px;
        height: 35px;
        border-radius:0;
        &:nth-of-type(1){
          margin-right: 15px;
        }
        span{
          font-size: 14px;
        }
      }
    }
  }
  .shop_title{
    background:#F5F7FA;
    padding-left: 10%;
    span{
      width: 20%;
      color:#353535;
      font-size: 16px;
      display: inline-block;
      text-align: center;
      height: 40px;
      line-height: 40px;
      &:last-of-type{
        width: 30%;
      }
    }
  }
  .shop_desc{
    position: relative;
    width: 100%;
    border-bottom: 1px solid #F5F7FA;
    .ivu-radio,.ivu-checkbox{
      position: absolute;
      left: 7%;
      top:50%;
      -webkit-transform: translateY(-50%);
      -moz-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
      -o-transform: translateY(-50%);
      transform: translateY(-50%);
    }
    .clearfix;
    padding-left: 10%;
    p{
      width: 20%;
      height: 103px;
      line-height: 103px;
      text-align: center;
      float: left;
      color:#353535;
      font-size: 16px;
      &:last-of-type{
        width: 30%;
      }
      img{
        width: 68%;
        height: 85px;
        object-fit: cover;
        border:1px solid #A0A0A0;
        margin: 9px 0 0 0;
      }
    }
  }
}
